﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script type="text/javascript" src="/Scripts/jquery-1.11.2.min.js"></script>
    <link href="../../CSS/bootstrap3.3.5/css/bootstrap.css" rel="stylesheet" />
    <script src="../../JqueryPlug/ckplayer/ckplayer.js"></script>
    <script type="text/javascript">
        function getQueryString(name, defauval) {
            var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
            var r = window.location.search.substr(1).match(reg);
            if (r != null) { return unescape(r[2]); }
            else {
                return defauval || "";
            }
        }
        $(document).ready(function () {
            var path = getQueryString("path");
            playvideo(path)
        });
        function playvideo(url) {
            var flashvars = {
                f: url,
                c: 0,
                b: 1,
                p: 1
            };
            //var params = { bgcolor: '#FFF', allowFullScreen: true, allowScriptAccess: 'always', wmode: 'transparent' };
            var video = [url + '->video/mp4'];
            CKobject.embed('../../JqueryPlug/ckplayer/ckplayer.swf', 'fVideoBox', 'ckplayer_a1', '800', '600', false, flashvars, video);
            // CKobject.embedSWF('../../JqueryPlug/ckplayer/ckplayer.swf', 'fVideoBox', 'ckplayer_a1', '600', '400', flashvars, params);

        }
        
    </script>
</head>
<body style="margin: 10px;">
    <div style="text-align:center">
       <div class="VideoBox" id="fVideoBox">
	   </div>
    </div>
    <!-- THE FOLLOWING CODE BLOCK CAN SAFELY BE REMOVED, IT IS ONLY PLACED HERE TO HELP YOU GET STARTED. -->

</body>
</html>